package book;

public class BookList {
    private Book[] books;
    private int curSize;
    private int count;

    public BookList(){
        books = new Book[10];
        books[0] = new Book("三国演义","罗贯中","名著",30.12);
        books[1] = new Book("西游记","吴承恩","名著",30.14);
        books[2] = new Book("红楼梦","曹雪芹","名著",50.42);

        curSize = 3;
        count = 10;
    }


    public int getCurSize() {
        return curSize;
    }

    public void setCurSize(int curSize) {
        this.curSize = curSize;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Book getBooks(int i) {
        return books[i];
    }

    public void setBooks(int pos,Book newBook) {
        books[pos] = newBook;
    }
}
